package com.communal.util;

import java.util.HashMap;
import java.util.Map;

/**
 * Class with public static constants for application <br>
 * @author Created by andrey.kuznetsov <br>
 * @author Last modified by $Author$ <br>
 * @author Last modified on $Date$ at revision $Revision$ <br>
 */
public class AppConstants {
	
	public static final Integer FAKE_ID = -1;
	
	/*enable and disable states*/
	public static final Short ENTITY_STATE_ENABLED = 1;
	public static final Short ENTITY_STATE_DISABLED = 0;
	
	public static final String ROLE_USER = "ROLE_USER";
	
	public static final String DATE_FORMAT = "d-m-Y";
	
	public static final Short PAGE_RECORD_COUNT = 30;

	public static final String COLOR_HEX_RED = "FF0000";
	public static final String COLOR_HEX_BLUE = "0000FF";
	
	public static final String SYMBOL_DEFIS = "-"; 
	
	public static final Map<Short, String> MONTHS_NAMES = new HashMap<Short, String>();
	static{
		MONTHS_NAMES.put((short) 0, "month.january");
		MONTHS_NAMES.put((short) 1, "month.febuary");
		MONTHS_NAMES.put((short) 2, "month.march");
		MONTHS_NAMES.put((short) 3, "month.april");
		MONTHS_NAMES.put((short) 4, "month.may");
		MONTHS_NAMES.put((short) 5, "month.june");
		MONTHS_NAMES.put((short) 6, "month.july");
		MONTHS_NAMES.put((short) 7, "month.august");
		MONTHS_NAMES.put((short) 8, "month.september");
		MONTHS_NAMES.put((short) 9, "month.october");
		MONTHS_NAMES.put((short) 10, "month.november");
		MONTHS_NAMES.put((short) 11, "month.december");	
	}
	
	//water tarif types
	public static final Short WATER_TARIF_COUNTER = 0;
	public static final Short WATER_TARIF_FIXED = 1;
	
	//internet tarif types
	public static final Short INTERNET_TARIF_LIMIT = 0;
	public static final Short INTERNET_TARIF_UNLIMIT = 1;
}
